package com.atguigu.gmall.all.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description:
 * @author: JC
 * @date: 2021/11/2 13:21
 */
@Controller
public class PassportController {

    /**
     *
     * @param originUrl 登录成功后 要返回的路径
     * @param modelMap
     * @return
     */
    @GetMapping("login.html")
    public String loginIndex(String originUrl, ModelMap modelMap){

        modelMap.addAttribute("originUrl",originUrl);
        return "login";
    }
}
